﻿using IconYuan.Manager.DB;
using IconYuan.Model.Entity.Users;
using SqlSugar;
using System;

namespace IconYuan.Manager.Users
{
    /// <summary>
    /// 会员等级
    /// </summary>
    public class UserGradeManager : BaseContext<UserGrade>
    {
        /// <summary>
        /// 所有等级
        /// </summary>
        /// <returns></returns>
        public List<UserGrade> GetAllList(OrderByType orderBy)
        {
            return GetList(x => x.is_delete == 0, y => y.weight, orderBy);
        }
    }
}
